/*
 * AddComment.h
 *
 *  Created on: 16.12.2009
 *      Author: apoi
 */

#ifndef ADDCOMMENT_H_
#define ADDCOMMENT_H_

#include <QFrame>
#include "ui_AddComment.h"
#include "WPData.h"

class BlogView;

class AddComment : public QFrame
{
    Q_OBJECT

public:
    AddComment(QWidget* aParent, WPPost aPost, BlogView& aBlogView);
    ~AddComment();

    bool HasText();

public slots:
    void SaveComment();

private slots:
    void ClearForm();

private:
    Ui::AddComment ui;
    WPPost iPost;
    BlogView& iBlogView;
};

#endif /* ADDCOMMENT_H_ */
